package com.atguigu.gulimaill.cart.service;

import com.atguigu.gulimaill.cart.vo.CartItemVo;
import com.atguigu.gulimaill.cart.vo.CartVo;

import java.util.List;
import java.util.concurrent.ExecutionException;


public interface CartService {
    CartItemVo addToCart(Long skuId, Integer num) throws ExecutionException, InterruptedException;

    CartItemVo getCartItem(Long skuId);

    CartVo getCart();

    void checked(Long skuId, boolean checked);

    void countItem(Long skuId, Integer num);

    void delItem(Long skuId);

    List<CartItemVo> getCurrentUserCartItems();
}
